Optimal. Leaf size=161 \[ -\frac{\cos ^5(e+f x) \left (a+b \sec ^2(e+f x)-b\right )^{3/2}}{5 f (a-b)}+\frac{2 (5 a-4 b) \cos ^3(e+f x) \left (a+b \sec ^2(e+f x)-b\right )^{3/2}}{15 f (a-b)^2}-\frac{\cos (e+f x) \sqrt{a+b \sec ^2(e+f x)-b}}{f}+\frac{\sqrt{b} \tanh ^{-1}\left (\frac{\sqrt{b} \sec (e+f x)}{\sqrt{a+b \sec ^2(e+f x)-b}}\right )}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.165315, antiderivative size = 161, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.24, Rules used = {3664, 462, 451, 277, 217, 206} \[ -\frac{\cos ^5(e+f x) \left (a+b \sec ^2(e+f x)-b\right )^{3/2}}{5 f (a-b)}+\frac{2 (5 a-4 b) \cos ^3(e+f x) \left (a+b \sec ^2(e+f x)-b\right )^{3/2}}{15 f (a-b)^2}-\frac{\cos (e+f x) \sqrt{a+b \sec ^2(e+f x)-b}}{f}+\frac{\sqrt{b} \tanh ^{-1}\left (\frac{\sqrt{b} \sec (e+f x)}{\sqrt{a+b \sec ^2(e+f x)-b}}\right )}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3664
Rule 462
Rule 451
Rule 277
Rule 217
Rule 206
Rubi steps
\begin{align*} \int \sin ^5(e+f x) \sqrt{a+b \tan ^2(e+f x)} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{\left (-1+x^2\right )^2 \sqrt{a-b+b x^2}}{x^6} \, dx,x,\sec (e+f x)\right )}{f}\\ &=-\frac{\cos ^5(e+f x) \left (a-b+b \sec ^2(e+f x)\right )^{3/2}}{5 (a-b) f}+\frac{\operatorname{Subst}\left (\int \frac{\left (-2 (5 a-4 b)+5 (a-b) x^2\right ) \sqrt{a-b+b x^2}}{x^4} \, dx,x,\sec (e+f x)\right )}{5 (a-b) f}\\ &=\frac{2 (5 a-4 b) \cos ^3(e+f x) \left (a-b+b \sec ^2(e+f x)\right )^{3/2}}{15 (a-b)^2 f}-\frac{\cos ^5(e+f x) \left (a-b+b \sec ^2(e+f x)\right )^{3/2}}{5 (a-b) f}+\frac{\operatorname{Subst}\left (\int \frac{\sqrt{a-b+b x^2}}{x^2} \, dx,x,\sec (e+f x)\right )}{f}\\ &=-\frac{\cos (e+f x) \sqrt{a-b+b \sec ^2(e+f x)}}{f}+\frac{2 (5 a-4 b) \cos ^3(e+f x) \left (a-b+b \sec ^2(e+f x)\right )^{3/2}}{15 (a-b)^2 f}-\frac{\cos ^5(e+f x) \left (a-b+b \sec ^2(e+f x)\right )^{3/2}}{5 (a-b) f}+\frac{b \operatorname{Subst}\left (\int \frac{1}{\sqrt{a-b+b x^2}} \, dx,x,\sec (e+f x)\right )}{f}\\ &=-\frac{\cos (e+f x) \sqrt{a-b+b \sec ^2(e+f x)}}{f}+\frac{2 (5 a-4 b) \cos ^3(e+f x) \left (a-b+b \sec ^2(e+f x)\right )^{3/2}}{15 (a-b)^2 f}-\frac{\cos ^5(e+f x) \left (a-b+b \sec ^2(e+f x)\right )^{3/2}}{5 (a-b) f}+\frac{b \operatorname{Subst}\left (\int \frac{1}{1-b x^2} \, dx,x,\frac{\sec (e+f x)}{\sqrt{a-b+b \sec ^2(e+f x)}}\right )}{f}\\ &=\frac{\sqrt{b} \tanh ^{-1}\left (\frac{\sqrt{b} \sec (e+f x)}{\sqrt{a-b+b \sec ^2(e+f x)}}\right )}{f}-\frac{\cos (e+f x) \sqrt{a-b+b \sec ^2(e+f x)}}{f}+\frac{2 (5 a-4 b) \cos ^3(e+f x) \left (a-b+b \sec ^2(e+f x)\right )^{3/2}}{15 (a-b)^2 f}-\frac{\cos ^5(e+f x) \left (a-b+b \sec ^2(e+f x)\right )^{3/2}}{5 (a-b) f}\\ \end{align*}
Mathematica [A] time = 3.25176, size = 208, normalized size = 1.29 \[ \frac{\cos (e+f x) \sqrt{\sec ^2(e+f x) ((a-b) \cos (2 (e+f x))+a+b)} \left (\sqrt{(a-b) \cos (2 (e+f x))+a+b} \left (4 \left (7 a^2-15 a b+8 b^2\right ) \cos (2 (e+f x))-89 a^2-3 (a-b)^2 \cos (4 (e+f x))+254 a b-149 b^2\right )+120 \sqrt{2} \sqrt{b} (a-b)^2 \tanh ^{-1}\left (\frac{\sqrt{(a-b) \cos (2 (e+f x))+a+b}}{\sqrt{2} \sqrt{b}}\right )\right )}{120 \sqrt{2} f (a-b)^2 \sqrt{(a-b) \cos (2 (e+f x))+a+b}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.752, size = 7044, normalized size = 43.8 \begin{align*} \text{output too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 3.36526, size = 941, normalized size = 5.84 \begin{align*} \left [\frac{15 \,{\left (a^{2} - 2 \, a b + b^{2}\right )} \sqrt{b} \log \left (-\frac{{\left (a - b\right )} \cos \left (f x + e\right )^{2} + 2 \, \sqrt{b} \sqrt{\frac{{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) + 2 \, b}{\cos \left (f x + e\right )^{2}}\right ) - 2 \,{\left (3 \,{\left (a^{2} - 2 \, a b + b^{2}\right )} \cos \left (f x + e\right )^{5} -{\left (10 \, a^{2} - 21 \, a b + 11 \, b^{2}\right )} \cos \left (f x + e\right )^{3} +{\left (15 \, a^{2} - 40 \, a b + 23 \, b^{2}\right )} \cos \left (f x + e\right )\right )} \sqrt{\frac{{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}}}{30 \,{\left (a^{2} - 2 \, a b + b^{2}\right )} f}, -\frac{15 \,{\left (a^{2} - 2 \, a b + b^{2}\right )} \sqrt{-b} \arctan \left (\frac{\sqrt{-b} \sqrt{\frac{{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right )}{b}\right ) +{\left (3 \,{\left (a^{2} - 2 \, a b + b^{2}\right )} \cos \left (f x + e\right )^{5} -{\left (10 \, a^{2} - 21 \, a b + 11 \, b^{2}\right )} \cos \left (f x + e\right )^{3} +{\left (15 \, a^{2} - 40 \, a b + 23 \, b^{2}\right )} \cos \left (f x + e\right )\right )} \sqrt{\frac{{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}}}{15 \,{\left (a^{2} - 2 \, a b + b^{2}\right )} f}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{b \tan \left (f x + e\right )^{2} + a} \sin \left (f x + e\right )^{5}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]